var str = '123';
var num = 123;
var bool = false;
var any = false;
var arr = ['1', '2', '4', 4];
// 枚举 
var objType;
(function (objType) {
    objType["name"] = "\u5F20\u4E09";
    objType["age"] = "\u674E\u56DB";
})(objType || (objType = {}));
function getName(info) {
    if (typeof info.age) {
        console.log('我使用的是infoObj接口');
    }
    else {
        console.log('我使用的是infotype接口');
    }
    console.log(info);
}
// const info: objType =objType['age']
getName({
    name: '张三',
    age: '12',
    sex: true
});
console.log(any);
